@font-face {
    font-family: 'es';
    src: url('../fonts/eurostile-webfont.woff2') format('woff2'),
    url('../fonts/eurostile-webfont.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

.number {
    font: .2rem/1 'es';
}
html{
    background: #931626;
}
html, body, #page {
    width: 100%;
    height: 100%
}

body {
    font-weight: 500;
    font-family: Microsoft YaHei, Arial, "黑体", "宋体", sans-serif;
    background: linear-gradient(#200509, #931626);
}

ul {
    list-style: none
}

li {
    display: block
}

a, a:hover, a:active, a:visited, a:link {
    color: inherit;
    text-decoration: none
}

input, textarea, button, select {
    outline: none;
    color: inherit
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

::-webkit-scrollbar {
    width: 0;
    height: 0
}

//签到人
.person-box(@width){
    .person-box{
        background:linear-gradient(#fff 5%,rgba(255, 255, 255,.7) 60%,#fff 90%);
        text-align: center;
        width:@width;
        padding:@width/17 0;
        &.animated{
            -webkit-animation-duration: .2s;
            animation-duration:.2s;
        }
        .headimg{
            display: inline-block;
            width:@width/2;
            height:@width/2;
            margin:@width/12 0 @width/12;
            border-radius: 50%;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            border:@width/36 solid #D1D3D2;
            position:relative;
            &::after{
                content:'✔';
                background: #38cb00;
                width:@width/9;
                height:@width/9;
                display: block;
                border-radius: 50%;
                color: #fff;
                right: 0;
                bottom:0;
                position: absolute;
                line-height:@width/9;
            }
        }
        h1{
            font-size:@width/7.2;
            font-weight: normal;
            color: #444;
        }
        p{
            color:red;
            font-size:@width/16.3;
            padding:@width/18 0 @width/5;
        }
        small{
            color:#aaa;
            font-size:@width/20;
        }
    }
}

#page {
    overflow: hidden;
    font-size: .19rem;
    line-height: 1;
    position: relative;
    color: #fff;
    font-weight: 500;
    padding: 0 1.2rem;
    header {
        padding:.5rem 0 .2rem;
        height: 15%;
        display: flex;
        justify-content: space-between;
        h1 {
            font-size: .48rem;
        }
        time {
            text-align: right;
            font-size: .25rem;
            line-height: .5rem;
            p{
                font-size: .38rem;
            }
        }
    }
    section{
        height:70%;
        position: relative;
        &>div{
            position: absolute;
            top: 0;
            left: 0;
            box-shadow:0 0 .8rem .1rem rgba(0,0,0,.5);
            height: 100%;
            width: 100%;
            z-index: 2;
        }
        #home {
            .left{
                background:linear-gradient(to right,#F25140,#EB384A);
                width: 61%;
                float: left;
                height:100%;
                padding:.8rem 1.4rem;
                h1{
                    font-size: .5rem;
                }
                h2{
                    margin: .2rem 0 .3rem;
                    font-size: .4rem;
                }
                ul{
                    li{
                        font-size: .3rem;
                        padding-top: .4rem;
                        overflow: hidden;
                        line-height: .34rem;
                        span{
                            display:block;
                            float: left;
                            width: 1.2rem;
                            color:rgba(255,255,255,.8) ;
                        }
                        div{
                            display:block;
                            float:left;
                            width: calc(~'100% - 1.2rem');
                        }
                    }
                }
            }
            .right{
                height:100%;
                float: right;
                width: 39%;
                background: #fff;
                color:#444;
                text-align: center;
                padding:.8rem 0;
                p{
                    color: #EE5056;
                    font-weight: 600;
                    font-size: .34rem;
                    margin: 0 0 .2rem;
                }
                h1{
                    font-size: .65rem;
                    font-weight: bold;
                }
                .clock {
                    background:linear-gradient(#fafafa, #cfcfcf);
                    width:4rem;
                    height:4rem;
                    margin: .5rem auto 0;
                    border:.16rem solid #444;
                    position: relative;
                    overflow: hidden;
                    border-radius: 50%;
                    box-sizing: border-box;
                    &:before{
                        content:'';
                        position: absolute;
                        width: 2.2rem;
                        height: 2.2rem;
                        top: 50%;
                        left:50%;
                        margin: -1.1rem 0 0 -1.1rem;
                        border-radius: 50%;
                        background:linear-gradient(#e2e2e2, #f6f6f6);
                        z-index: 1;
                    }
                    &:after{
                        content:'';
                        position: absolute;
                        width: .6rem;
                        height: .6rem;
                        top: 50%;
                        left:50%;
                        margin: -.3rem 0 0 -.3rem;
                        border-radius: 50%;
                        background: #f6f6f6;
                        box-shadow: 0 .03rem .05rem rgba(0,0,0,.2);
                        z-index: 2;
                    }
                    .memory {
                        font-family: Arial;
                        position: absolute;
                        left: 50%;
                        top: 50%;
                        margin: -.15rem 0 0 -.2rem;
                        width: .4rem;
                        height: .3rem;
                        line-height: .3rem;
                        text-align: center;
                        z-index: 3;
                        font-size: .35rem;
                        color: #999;
                        font-weight: 600;
                        &:first-child{
                            top: .3rem;
                        }
                        &:nth-child(2) {
                            left: unset;
                            right: .15rem;
                        }
                        &:nth-child(3) {
                            top: unset;
                            bottom: .15rem;
                        }
                        &:nth-child(4){
                            left: .3rem;
                        }
                    }
                    .needle {
                        position: absolute;
                        top: 50%;
                        left: 50%;
                        z-index: 4;
                        box-shadow: 0 0 .08rem rgba(0,0,0,.5);
                        &.moving {
                            transition: transform 150ms ease-out;
                        }
                    }
                    #hours {
                        background: #444;
                        width:.16rem;
                        border-radius: .08rem;
                        height: 20%;
                        transform-origin: center 100%;
                        transform: translate(-50%, -100%);
                    }
                    #minutes {
                        background-color: #444;
                        width: .12rem;
                        border-radius: .06rem;
                        height:35%;
                        transform-origin: center 100%;
                        transform: translate(-50%, -100%);
                    }
                    #seconds {
                        background-color: #444;
                        width:.06rem;
                        border-radius: .03rem;
                        height:50%;
                        transform-origin: center 85%;
                        transform: translate(-50%, -85%);
                        &:after {
                            content: '';
                            background: #f4f4f4;
                            width:.26rem;
                            height:.26rem;
                            display: block;
                            position: absolute;
                            top:85%;
                            left: 50%;
                            box-shadow: 0 0 .08rem rgba(0,0,0,.4);
                            box-sizing: border-box;
                            border-radius: 50%;
                            transform: translate(-50%, -50%);
                            z-index: 5;
                        }
                    }
                }
            }
        }
        #detail{
            .left{
                background:linear-gradient(to right bottom, #f1583d, #d62f45);
                width:5rem;
                float: left;
                height:100%;
                padding:.25rem;
                &>div{
                    position: relative;
                    &::after{
                        content: '';
                        display: block;
                        height: 1px;
                        width: 100%;
                        position: absolute;
                        bottom:0;
                        left: 0;
                        background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255,.25), rgba(255, 255, 255, 0));
                    }
                    li{
                        float: left;
                    }
                    &:last-child::after{
                        display: none;
                    }
                }
                .mess{
                    padding: .1rem 0 0;
                    font-size:.28rem;
                    color: rgba(255, 255, 255, .8);
                    line-height: .3rem;
                    height:2rem;
                    p{
                        overflow: hidden;
                        padding-bottom: .25rem;
                        span{
                            width:3.5rem;
                            float: right;
                        }
                    }
                }
                .time{
                    font-size: .22rem;
                    color: rgba(255, 255, 255,.8);
                    line-height: .8rem;
                    padding: .2rem 0;
                    span{
                        float: right;
                        font-size: .7rem;
                        color: #fee252;
                    }
                }
                .data{
                    overflow: hidden;
                    padding: .24rem 0;
                    div{
                        float: left;
                        color: rgba(255, 255, 255,.8);
                        p{
                            font-size: .45rem;
                            color: #fff;
                            padding-top: .15rem;
                        }
                    }
                    ul{
                        float: right;
                        padding-top: .06rem;
                        li{
                            width: .7rem;
                            height: .7rem;
                            border-radius: 50%;
                            background-repeat: no-repeat;
                            background-position: center;
                            background-size: cover;
                            margin-left: .2rem;
                        }
                    }
                    h1{
                        font-size: .7rem;
                        color: #fee252;
                        float: right;
                        font-weight: normal;
                        line-height:.85rem;
                    }
                }
            }
            .right{
                margin-left: .15rem;
                background:url(http://iph.href.lu/100x50)no-repeat center/100% 100%;
                height:100%;
                float: right;
                width:calc(~'100% - 5.15rem');
                display: flex;
                align-items: center;
                justify-content: center;
                .person-box(4rem);
                .person-box:nth-child(2){
                    margin-left: .4rem;
                }
            }
        }
    }
    footer{
        height: 15%;
        padding-top: .5rem;

        .radio{
            float: left;
            height: 100%;
            width: 5rem;
            background: #ffe252;
            color:#EE5056;
            margin-right:.8rem;
            padding:.3rem .5rem 0;
            border-radius: .2rem .2rem 0 0;
            font-size: .25rem;
        }

        ul{
            height: 100%;
            text-align: center;
            float: left;
            li{
                height: 100%;
                float: left;
                width: 1.5rem;
                opacity: .5;
                cursor: pointer;
                img{
                    width:.6rem;
                    margin: .08rem 0;
                }
                &.active{
                    opacity:1;
                    background:linear-gradient(rgba(251, 37, 67, 0), #fb2543);
                }
            }
        }

        .air{
            float: right;
            height: 100%;
            text-align: center;
            div{
                width:1.5rem;
                height: 100%;
                float: left;
                padding-top:.1rem;
                p{
                    font-size: .45rem;
                    &:after{
                        font-size: .3rem;
                    }
                }
            }
            .temperature p:after{
                content: '℃';
            }
            .humidity p:after{
                content: '%';
            }
        }
    }
}
